--------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table6.log
  log type:  text
 opened on:  11 Jun 2020, 14:38:00

. 
. use "$path/turnout_analysis.dta", clear

. 
. keep voterid p_ g_ foreclose zy year reg_year

. gen reg = reg_year <= 2003 | reg_year == . 

. drop reg_year

. 
. // generate pre-treatment measures of dem and rep
. gen dem_pre_treat_temp = p_ == 1 & year == 2000

. egen dem_pre_treat = max(dem_pre_treat_temp), by(voterid)

. drop dem_pre_treat_temp

. gen rep_pre_treat_temp = p_ == 2 & year == 2000

. egen rep_pre_treat = max(rep_pre_treat_temp), by(voterid)

. drop rep_pre_treat_temp

. drop p

. 
. gen foreclose_dem = foreclose * dem_pre_treat

. gen foreclose_rep = foreclose * rep_pre_treat

. drop dem_pre_treat rep_pre_treat

. 
. compress
  variable reg was float now byte
  variable foreclose_dem was float now byte
  variable foreclose_rep was float now byte
  (655,608,411 bytes saved)

. 
. reghdfe g_ foreclose, a(voterid zy) cluster(voterid)
(dropped 126 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 72,840,879
Absorbing 2 HDFE groups                           F(   1,8093430) =    1357.55
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5973
                                                  Adj R-squared   =     0.5469
                                                  Within R-sq.    =     0.0000
Number of clusters (voterid) =  8,093,431         Root MSE        =     0.3363

                        (Std. Err. adjusted for 8,093,431 clusters in voterid)
------------------------------------------------------------------------------
             |               Robust
          g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   foreclose |  -.0184699   .0005013   -36.84   0.000    -.0194524   -.0174874
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
     voterid |            0         8093431        8093431 *   | 
          zy |        11411           11412              1     | 
---------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b1 = _b[foreclose]

. local se1 = _se[foreclose]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. reghdfe g_ foreclose, a(voterid##c.year zy) cluster(voterid)
(dropped 126 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 72,840,879
Absorbing 2 HDFE groups                           F(   1,8093430) =     165.81
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.6873
                                                  Adj R-squared   =     0.5978
                                                  Within R-sq.    =     0.0000
Number of clusters (voterid) =  8,093,431         Root MSE        =     0.3169

                        (Std. Err. adjusted for 8,093,431 clusters in voterid)
------------------------------------------------------------------------------
             |               Robust
          g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   foreclose |  -.0069529     .00054   -12.88   0.000    -.0080112   -.0058946
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
        voterid |            0         8093431        8093431 *   | 
 voterid#c.year |      8093431         8093431              0 ?   | 
             zy |        11411           11412              1     | 
------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b2 = _b[foreclose]

. local se2 = _se[foreclose]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. reghdfe g_ foreclose foreclose_dem foreclose_rep, a(voterid zy) cluster(voterid)
(dropped 126 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 72,840,879
Absorbing 2 HDFE groups                           F(   3,8093430) =     515.00
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5973
                                                  Adj R-squared   =     0.5469
                                                  Within R-sq.    =     0.0000
Number of clusters (voterid) =  8,093,431         Root MSE        =     0.3363

                         (Std. Err. adjusted for 8,093,431 clusters in voterid)
-------------------------------------------------------------------------------
              |               Robust
           g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
    foreclose |  -.0164811   .0005107   -32.27   0.000    -.0174821   -.0154801
foreclose_dem |  -.0396477   .0039842    -9.95   0.000    -.0474565   -.0318388
foreclose_rep |   -.039345   .0032486   -12.11   0.000    -.0457122   -.0329778
-------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------+
  Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
--------------+-------------------------------------------------|
      voterid |            0         8093431        8093431 *   | 
           zy |        11411           11412              1     | 
----------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b3 = _b[foreclose]

. local se3 = _se[foreclose]

. local b3_2 = _b[foreclose_dem]

. local se3_2 = _se[foreclose_dem]

. local b3_3 = _b[foreclose_rep]

. local se3_3 = _se[foreclose_rep]

. local n3 = e(N)

. local nclust3 = e(N_clust)

. 
. reghdfe g_ foreclose foreclose_dem foreclose_rep, a(voterid##c.year zy) cluster(voterid)
(dropped 126 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 72,840,879
Absorbing 2 HDFE groups                           F(   3,8093430) =      55.39
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.6873
                                                  Adj R-squared   =     0.5978
                                                  Within R-sq.    =     0.0000
Number of clusters (voterid) =  8,093,431         Root MSE        =     0.3169

                         (Std. Err. adjusted for 8,093,431 clusters in voterid)
-------------------------------------------------------------------------------
              |               Robust
           g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
    foreclose |  -.0067688   .0005499   -12.31   0.000    -.0078466    -.005691
foreclose_dem |  -.0041648   .0043497    -0.96   0.338      -.01269    .0043604
foreclose_rep |  -.0033419   .0035505    -0.94   0.347    -.0103007    .0036169
-------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
        voterid |            0         8093431        8093431 *   | 
 voterid#c.year |      8093431         8093431              0 ?   | 
             zy |        11411           11412              1     | 
------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b4 = _b[foreclose]

. local se4 = _se[foreclose]

. local b4_2 = _b[foreclose_dem]

. local se4_2 = _se[foreclose_dem]

. local b4_3 = _b[foreclose_rep]

. local se4_3 = _se[foreclose_rep]

. local n4 = e(N)

. local nclust4 = e(N_clust)

. 
. keep if reg
(45,082,458 observations deleted)

. drop reg

. 
. reghdfe g_ foreclose, a(voterid zy) cluster(voterid)
(dropped 135 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 27,758,412
Absorbing 2 HDFE groups                           F(   1,3084267) =    4546.90
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5472
                                                  Adj R-squared   =     0.4904
                                                  Within R-sq.    =     0.0001
Number of clusters (voterid) =  3,084,268         Root MSE        =     0.3106

                        (Std. Err. adjusted for 3,084,268 clusters in voterid)
------------------------------------------------------------------------------
             |               Robust
          g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   foreclose |  -.0257881   .0003824   -67.43   0.000    -.0265377   -.0250386
------------------------------------------------------------------------------

Absorbed degrees of freedom:
---------------------------------------------------------------+
 Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-------------+-------------------------------------------------|
     voterid |            0         3084268        3084268 *   | 
          zy |        11357           11358              1     | 
---------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b5 = _b[foreclose]

. local se5 = _se[foreclose]

. local n5 = e(N)

. local nclust5 = e(N_clust)

. 
. reghdfe g_ foreclose, a(voterid##c.year zy) cluster(voterid)
(dropped 135 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 27,758,412
Absorbing 2 HDFE groups                           F(   1,3084267) =    2914.98
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.6371
                                                  Adj R-squared   =     0.5331
                                                  Within R-sq.    =     0.0001
Number of clusters (voterid) =  3,084,268         Root MSE        =     0.2973

                        (Std. Err. adjusted for 3,084,268 clusters in voterid)
------------------------------------------------------------------------------
             |               Robust
          g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   foreclose |  -.0233639   .0004327   -53.99   0.000    -.0242121   -.0225158
------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
        voterid |            0         3084268        3084268 *   | 
 voterid#c.year |      3084268         3084268              0 ?   | 
             zy |        11357           11358              1     | 
------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b6 = _b[foreclose]

. local se6 = _se[foreclose]

. local n6 = e(N)

. local nclust6 = e(N_clust)

. 
. reghdfe g_ foreclose foreclose_dem foreclose_rep, a(voterid zy) cluster(voterid)
(dropped 135 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 27,758,412
Absorbing 2 HDFE groups                           F(   3,3084267) =    1566.50
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.5472
                                                  Adj R-squared   =     0.4904
                                                  Within R-sq.    =     0.0001
Number of clusters (voterid) =  3,084,268         Root MSE        =     0.3106

                         (Std. Err. adjusted for 3,084,268 clusters in voterid)
-------------------------------------------------------------------------------
              |               Robust
           g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
    foreclose |  -.0255793   .0003784   -67.60   0.000    -.0263209   -.0248376
foreclose_dem |  -.0033997   .0041494    -0.82   0.413    -.0115323    .0047329
foreclose_rep |   -.004574   .0033071    -1.38   0.167    -.0110557    .0019078
-------------------------------------------------------------------------------

Absorbed degrees of freedom:
----------------------------------------------------------------+
  Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
--------------+-------------------------------------------------|
      voterid |            0         3084268        3084268 *   | 
           zy |        11357           11358              1     | 
----------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b7 = _b[foreclose]

. local se7 = _se[foreclose]

. local b7_2 = _b[foreclose_dem]

. local se7_2 = _se[foreclose_dem]

. local b7_3 = _b[foreclose_rep]

. local se7_3 = _se[foreclose_rep]

. local n7 = e(N)

. local nclust7 = e(N_clust)

. 
. reghdfe g_ foreclose foreclose_dem foreclose_rep, a(voterid##c.year zy) cluster(voterid)
(dropped 135 singleton observations)
(converged in 3 iterations)

HDFE Linear regression                            Number of obs   = 27,758,412
Absorbing 2 HDFE groups                           F(   3,3084267) =    1021.60
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.6371
                                                  Adj R-squared   =     0.5331
                                                  Within R-sq.    =     0.0001
Number of clusters (voterid) =  3,084,268         Root MSE        =     0.2973

                         (Std. Err. adjusted for 3,084,268 clusters in voterid)
-------------------------------------------------------------------------------
              |               Robust
           g_ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
    foreclose |  -.0236435   .0004299   -54.99   0.000    -.0244862   -.0228009
foreclose_dem |    .008257   .0045702     1.81   0.071    -.0007003    .0172143
foreclose_rep |   .0038252   .0036616     1.04   0.296    -.0033514    .0110018
-------------------------------------------------------------------------------

Absorbed degrees of freedom:
------------------------------------------------------------------+
    Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
----------------+-------------------------------------------------|
        voterid |            0         3084268        3084268 *   | 
 voterid#c.year |      3084268         3084268              0 ?   | 
             zy |        11357           11358              1     | 
------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b8 = _b[foreclose]

. local se8 = _se[foreclose]

. local b8_2 = _b[foreclose_dem]

. local se8_2 = _se[foreclose_dem]

. local b8_3 = _b[foreclose_rep]

. local se8_3 = _se[foreclose_rep]

. local n8 = e(N)

. local nclust8 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table6.log
  log type:  text
 closed on:  11 Jun 2020, 16:46:21
--------------------------------------------------------------------------------------------------------------------
